Optimal. Leaf size=48 \[ -\frac {d \left (a+b \log \left (c x^n\right )\right )}{x}+\frac {e \left (a+b \log \left (c x^n\right )\right )^2}{2 b n}-\frac {b d n}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 43, normalized size of antiderivative = 0.90, number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {43, 2334, 14, 2301} \[ -\left (\frac {d}{x}-e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {b d n}{x}-\frac {1}{2} b e n \log ^2(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 43
Rule 2301
Rule 2334
Rubi steps
\begin {align*} \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )}{x^2} \, dx &=-\left (\frac {d}{x}-e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \frac {-d+e x \log (x)}{x^2} \, dx\\ &=-\left (\frac {d}{x}-e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (-\frac {d}{x^2}+\frac {e \log (x)}{x}\right ) \, dx\\ &=-\frac {b d n}{x}-\left (\frac {d}{x}-e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )-(b e n) \int \frac {\log (x)}{x} \, dx\\ &=-\frac {b d n}{x}-\frac {1}{2} b e n \log ^2(x)-\left (\frac {d}{x}-e \log (x)\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 48, normalized size = 1.00 \[ -\frac {d \left (a+b \log \left (c x^n\right )\right )}{x}+\frac {e \left (a+b \log \left (c x^n\right )\right )^2}{2 b n}-\frac {b d n}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 50, normalized size = 1.04 \[ \frac {b e n x \log \relax (x)^{2} - 2 \, b d n - 2 \, b d \log \relax (c) - 2 \, a d + 2 \, {\left (b e x \log \relax (c) - b d n + a e x\right )} \log \relax (x)}{2 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.33, size = 56, normalized size = 1.17 \[ \frac {b n x e \log \relax (x)^{2} + 2 \, b x e \log \relax (c) \log \relax (x) - 2 \, b d n \log \relax (x) + 2 \, a x e \log \relax (x) - 2 \, b d n - 2 \, b d \log \relax (c) - 2 \, a d}{2 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.24, size = 250, normalized size = 5.21 \[ -\frac {\left (-e x \ln \relax (x )+d \right ) b \ln \left (x^{n}\right )}{x}-\frac {i \pi b e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \relax (x )-i \pi b e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \relax (x )-i \pi b e x \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \relax (x )+i \pi b e x \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \relax (x )+b e n x \ln \relax (x )^{2}-i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b d \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b d \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-2 b e x \ln \relax (c ) \ln \relax (x )-2 a e x \ln \relax (x )+2 b d n +2 b d \ln \relax (c )+2 a d}{2 x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.83, size = 49, normalized size = 1.02 \[ \frac {b e \log \left (c x^{n}\right )^{2}}{2 \, n} + a e \log \relax (x) - \frac {b d n}{x} - \frac {b d \log \left (c x^{n}\right )}{x} - \frac {a d}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.57, size = 59, normalized size = 1.23 \[ \ln \relax (x)\,\left (a\,e+b\,e\,n\right )-\frac {a\,d+b\,d\,n}{x}-\frac {\ln \left (c\,x^n\right )\,\left (b\,d+b\,e\,x\right )}{x}+\frac {b\,e\,{\ln \left (c\,x^n\right )}^2}{2\,n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.98, size = 53, normalized size = 1.10 \[ - \frac {a d}{x} + a e \log {\relax (x )} + b d \left (- \frac {n}{x} - \frac {\log {\left (c x^{n} \right )}}{x}\right ) - b e \left (\begin {cases} - \log {\relax (c )} \log {\relax (x )} & \text {for}\: n = 0 \\- \frac {\log {\left (c x^{n} \right )}^{2}}{2 n} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________